package com.jinshan.gaietymall.core.exception;

/**
 * ProjectName:    gaietymall
 * Package:        com.jinshan.gaietymall.core.exception
 * ClassName:      BusinessException
 * Author:     liujinshan
 * Description:
 * Date:    2020/4/15 13:40
 * Version:    1.0
 */
public class BusinessException extends RuntimeException {

    private String code;
    private String msg;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public BusinessException(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public BusinessException(String message, String code, String msg) {
        super(message);
        this.code = code;
        this.msg = msg;
    }

    public BusinessException(String message, Throwable cause, String code, String msg) {
        super(message, cause);
        this.code = code;
        this.msg = msg;
    }
}
